﻿using GSOrganization.Application;

using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;

namespace Furion.Web.Entry.Controllers;

[Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
public class SysLogController : BaseController
{

    private readonly ISysLogService _syslog;
 

    public SysLogController(ISysLogService syslog)
    {
        _syslog = syslog;

    }

    /// <summary>
    /// 用户管理
    /// </summary>
    /// <returns></returns>
    public IActionResult Index()
    {

        return View();
    }
    /// <summary>
    /// 列表
    /// </summary>
    /// <returns></returns>
    [HttpPost]
    public IActionResult DataSysLog([FromBody]SysLogIndexInput param)
    {         
 
        var data = _syslog.DataSysLog(param);
        return Json(data);
    }
    
    /// <summary>
    /// 详情
    /// </summary>
    /// <returns></returns>
    public IActionResult Detail()
    {
        return View();
    }

    

}